package com.bjc.principle.visitor;

/**
 * @program: DesignPattern
 * @description: 访问者模式
 * @author: bjc
 * @create: 2021-01-04 18:39
 */
public class VisitorPattern {

    public static void main(String[] args) {

        ComputerPart computer = new Computer();
        computer.accept(new ComputerPartDisplayVisitor());
    }
}
